package com.book.common.lang;

/**
 * Description：
 * @Author： leo.xiong
 * @CreateDate： 2020/4/15 10:31
 * @Email： leo.xiong@suyun360.com
 * Version：1.0
 */
public class Tuple2<T1, T2> extends Tuple1<T1> {

    private final T2 _2;

    public Tuple2(T1 t1, T2 t2) {
        super(t1);
        this._2 = t2;
    }

    public T2 _2() {
        return _2;
    }

    @Override
    public String toString() {
        return "(" + super._1() + "," + _2 + ")";
    }
}
